package generic.entity;

import lombok.Data;

/**
 * @desc NumBox
 * @author DonaldCen
 * @date 2025/11/7 17:06
 */
@Data
public class NumBox<T extends Number>{

    private T val;
}

class NumBox1 { // 泛型参数T被擦掉
    private Number value; // T换成上限Number
    public Number getValue() { return value; } // 返回值也换成Number
}
